﻿using System;
using System.Collections.Generic;

namespace PandaWebAPI.Models.ef;

/// <summary>
/// 帖子
/// </summary>
public partial class Post
{
    public Guid PostId { get; set; }

    public Guid UserId { get; set; }

    public Guid? CategoryId { get; set; }

    public string Title { get; set; } = null!;

    public string Content { get; set; } = null!;

    public DateTime? CreatedAt { get; set; }

    public DateTime? UpdatedAt { get; set; }

    public int? ViewCount { get; set; }

    public bool? IsDeleted { get; set; }

    public virtual ICollection<AdminAction> AdminActions { get; set; } = new List<AdminAction>();

    public virtual Category? Category { get; set; }

    public virtual ICollection<Comment> Comments { get; set; } = new List<Comment>();

    public virtual ICollection<Like> Likes { get; set; } = new List<Like>();

    public virtual ICollection<PostTag> PostTags { get; set; } = new List<PostTag>();

    public virtual User User { get; set; } = null!;
}
